#include Farmville-select window.ahk

;Ensure that we are zoomed out all the way
;This only requires 3 clicks, but I did 6 just in case
Loop 6
{
MouseClick, left,  695,  598
Sleep, 100
}

;Move window to view the first part of the field
MouseClickDrag, Left, 500, 500, 600, 500

Sleep, 100

MouseClick, left,  32,  435
Sleep, 20000
MouseClick, left,  60,  429
MouseClick, left,  83,  416
MouseClick, left,  111,  405
MouseClick, left,  136,  391
MouseClick, left,  161,  379
MouseClick, left,  186,  365
MouseClick, left,  209,  352
MouseClick, left,  235,  339
MouseClick, left,  260,  328
MouseClick, left,  284,  316
MouseClick, left,  310,  304
MouseClick, left,  335,  294
MouseClick, left,  361,  280
MouseClick, left,  383,  268
MouseClick, left,  410,  254
MouseClick, left,  435,  246
MouseClick, left,  458,  233
MouseClick, left,  485,  221
MouseClick, left,  510,  208
MouseClick, left,  534,  220
MouseClick, left,  510,  232
MouseClick, left,  483,  244
MouseClick, left,  460,  256
MouseClick, left,  436,  270
MouseClick, left,  409,  282
MouseClick, left,  386,  293
MouseClick, left,  360,  306
MouseClick, left,  334,  316
MouseClick, left,  309,  329
MouseClick, left,  286,  341
MouseClick, left,  260,  355
MouseClick, left,  234,  367
MouseClick, left,  211,  377
MouseClick, left,  185,  388
MouseClick, left,  160,  400
MouseClick, left,  136,  414
MouseClick, left,  108,  425
MouseClick, left,  85,  437
MouseClick, left,  61,  449
MouseClick, left,  85,  461
MouseClick, left,  109,  450
MouseClick, left,  133,  435
MouseClick, left,  160,  425
MouseClick, left,  186,  412
MouseClick, left,  211,  404
MouseClick, left,  236,  389
MouseClick, left,  261,  378
MouseClick, left,  284,  364
MouseClick, left,  311,  351
MouseClick, left,  334,  341
MouseClick, left,  358,  330
MouseClick, left,  384,  318
MouseClick, left,  409,  307
MouseClick, left,  436,  290
MouseClick, left,  459,  282
MouseClick, left,  486,  270
MouseClick, left,  508,  260
MouseClick, left,  536,  247
MouseClick, left,  561,  235
MouseClick, left,  584,  245
MouseClick, left,  560,  259
MouseClick, left,  535,  271
MouseClick, left,  510,  283
MouseClick, left,  486,  294
MouseClick, left,  458,  307
MouseClick, left,  436,  319
MouseClick, left,  409,  331
MouseClick, left,  384,  344
MouseClick, left,  362,  357
MouseClick, left,  335,  366
MouseClick, left,  311,  377
MouseClick, left,  285,  390
MouseClick, left,  260,  401
MouseClick, left,  234,  415
MouseClick, left,  209,  427
MouseClick, left,  184,  436
MouseClick, left,  160,  450
MouseClick, left,  134,  460
MouseClick, left,  110,  474
MouseClick, left,  134,  485
MouseClick, left,  158,  475
MouseClick, left,  184,  462
MouseClick, left,  210,  451
MouseClick, left,  235,  440
MouseClick, left,  258,  426
MouseClick, left,  285,  414
MouseClick, left,  310,  403
MouseClick, left,  335,  391
MouseClick, left,  359,  378
MouseClick, left,  385,  366
MouseClick, left,  409,  353
MouseClick, left,  436,  340
MouseClick, left,  459,  331
MouseClick, left,  490,  317
MouseClick, left,  510,  306
MouseClick, left,  533,  293
MouseClick, left,  560,  282
MouseClick, left,  585,  268
MouseClick, left,  609,  258
MouseClick, left,  636,  269
MouseClick, left,  611,  281
MouseClick, left,  584,  293
MouseClick, left,  560,  306
MouseClick, left,  535,  318
MouseClick, left,  511,  329
MouseClick, left,  484,  343
MouseClick, left,  459,  355
MouseClick, left,  434,  367
MouseClick, left,  409,  378
MouseClick, left,  384,  389
MouseClick, left,  360,  400
MouseClick, left,  334,  415
MouseClick, left,  310,  427
MouseClick, left,  286,  437
MouseClick, left,  260,  449
MouseClick, left,  234,  463
MouseClick, left,  211,  474
MouseClick, left,  183,  486
MouseClick, left,  158,  502
MouseClick, left,  187,  509
MouseClick, left,  210,  499
MouseClick, left,  234,  486
MouseClick, left,  259,  474
MouseClick, left,  284,  459
MouseClick, left,  311,  449
MouseClick, left,  334,  436
MouseClick, left,  357,  424
MouseClick, left,  385,  413
MouseClick, left,  411,  401
MouseClick, left,  434,  387
MouseClick, left,  458,  377
MouseClick, left,  484,  365
MouseClick, left,  511,  353
MouseClick, left,  535,  342
MouseClick, left,  559,  329
MouseClick, left,  584,  318
MouseClick, left,  610,  304
MouseClick, left,  635,  292
MouseClick, left,  658,  283
MouseClick, left,  686,  296
MouseClick, left,  660,  305
MouseClick, left,  633,  316
MouseClick, left,  610,  331
MouseClick, left,  578,  348
MouseClick, left,  557,  353
MouseClick, left,  533,  364
MouseClick, left,  511,  381
MouseClick, left,  482,  391
MouseClick, left,  457,  404
MouseClick, left,  435,  415
MouseClick, left,  411,  425
MouseClick, left,  384,  440
MouseClick, left,  357,  452
MouseClick, left,  335,  466
MouseClick, left,  311,  478
MouseClick, left,  285,  489
MouseClick, left,  259,  498
MouseClick, left,  234,  511
MouseClick, left,  210,  524
MouseClick, left,  233,  535
MouseClick, left,  263,  526
MouseClick, left,  290,  511
MouseClick, left,  311,  501
MouseClick, left,  330,  491
MouseClick, left,  358,  474
MouseClick, left,  385,  464
MouseClick, left,  410,  451
MouseClick, left,  435,  440
MouseClick, left,  459,  426
MouseClick, left,  487,  416
MouseClick, left,  515,  404
MouseClick, left,  534,  392
MouseClick, left,  560,  380
MouseClick, left,  587,  366
MouseClick, left,  608,  352
MouseClick, left,  636,  345
MouseClick, left,  661,  328
MouseClick, left,  685,  321
MouseClick, left,  708,  308
MouseClick, left,  735,  321
MouseClick, left,  710,  329
MouseClick, left,  686,  344
MouseClick, left,  659,  356
MouseClick, left,  636,  369
MouseClick, left,  612,  380
MouseClick, left,  585,  392
MouseClick, left,  560,  404
MouseClick, left,  534,  415
MouseClick, left,  510,  430
MouseClick, left,  485,  438
MouseClick, left,  460,  451
MouseClick, left,  436,  465
MouseClick, left,  409,  475
MouseClick, left,  385,  484
MouseClick, left,  357,  499
MouseClick, left,  333,  509
MouseClick, left,  310,  525
MouseClick, left,  284,  534
MouseClick, left,  258,  548
MouseClick, left,  283,  561
MouseClick, left,  308,  546
MouseClick, left,  338,  535
MouseClick, left,  366,  524
MouseClick, left,  389,  509
MouseClick, left,  408,  504
MouseClick, left,  432,  487
MouseClick, left,  460,  474
MouseClick, left,  487,  464
MouseClick, left,  508,  451
MouseClick, left,  537,  442
MouseClick, left,  559,  429
MouseClick, left,  584,  415
MouseClick, left,  607,  404
MouseClick, left,  637,  391
MouseClick, left,  657,  379
MouseClick, left,  683,  373
MouseClick, left,  711,  356
MouseClick, left,  735,  345
MouseClick, left,  762,  333

Sleep, 100

;Move window to view the second half of the field
MouseClickDrag, Left, 600, 600, 400, 500

Sleep, 100

MouseClick, left,  581,  239
MouseClick, left,  559,  254
MouseClick, left,  534,  267
MouseClick, left,  509,  278
MouseClick, left,  485,  291
MouseClick, left,  461,  302
MouseClick, left,  434,  313
MouseClick, left,  410,  327
MouseClick, left,  385,  338
MouseClick, left,  358,  350
MouseClick, left,  335,  361
MouseClick, left,  310,  375
MouseClick, left,  284,  386
MouseClick, left,  260,  397
MouseClick, left,  235,  410
MouseClick, left,  207,  423
MouseClick, left,  185,  434
MouseClick, left,  159,  445
MouseClick, left,  135,  459
MouseClick, left,  111,  470
MouseClick, left,  134,  482
MouseClick, left,  160,  471
MouseClick, left,  184,  458
MouseClick, left,  210,  444
MouseClick, left,  236,  432
MouseClick, left,  260,  424
MouseClick, left,  282,  411
MouseClick, left,  311,  397
MouseClick, left,  334,  386
MouseClick, left,  360,  373
MouseClick, left,  384,  363
MouseClick, left,  411,  349
MouseClick, left,  435,  338
MouseClick, left,  459,  326
MouseClick, left,  484,  315
MouseClick, left,  511,  303
MouseClick, left,  536,  289
MouseClick, left,  560,  279
MouseClick, left,  585,  264
MouseClick, left,  609,  256
MouseClick, left,  637,  266
MouseClick, left,  609,  279
MouseClick, left,  585,  290
MouseClick, left,  559,  302
MouseClick, left,  533,  314
MouseClick, left,  510,  327
MouseClick, left,  487,  339
MouseClick, left,  460,  351
MouseClick, left,  435,  362
MouseClick, left,  408,  374
MouseClick, left,  384,  389
MouseClick, left,  361,  397
MouseClick, left,  334,  411
MouseClick, left,  311,  425
MouseClick, left,  286,  435
MouseClick, left,  263,  448
MouseClick, left,  236,  459
MouseClick, left,  208,  470
MouseClick, left,  185,  483
MouseClick, left,  162,  493
MouseClick, left,  183,  506
MouseClick, left,  209,  494
MouseClick, left,  234,  481
MouseClick, left,  260,  470
MouseClick, left,  289,  459
MouseClick, left,  310,  448
MouseClick, left,  335,  433
MouseClick, left,  359,  422
MouseClick, left,  385,  411
MouseClick, left,  410,  398
MouseClick, left,  434,  388
MouseClick, left,  459,  374
MouseClick, left,  486,  362
MouseClick, left,  508,  349
MouseClick, left,  533,  340
MouseClick, left,  559,  326
MouseClick, left,  584,  315
MouseClick, left,  612,  302
MouseClick, left,  633,  292
MouseClick, left,  659,  280
MouseClick, left,  682,  288
MouseClick, left,  661,  301
MouseClick, left,  635,  315
MouseClick, left,  609,  327
MouseClick, left,  584,  339
MouseClick, left,  560,  353
MouseClick, left,  537,  362
MouseClick, left,  509,  374
MouseClick, left,  484,  388
MouseClick, left,  459,  397
MouseClick, left,  434,  410
MouseClick, left,  411,  421
MouseClick, left,  386,  434
MouseClick, left,  360,  446
MouseClick, left,  337,  459
MouseClick, left,  310,  471
MouseClick, left,  285,  483
MouseClick, left,  259,  498
MouseClick, left,  233,  508
MouseClick, left,  208,  516
MouseClick, left,  236,  531
MouseClick, left,  258,  518
MouseClick, left,  284,  506
MouseClick, left,  311,  497
MouseClick, left,  333,  484
MouseClick, left,  360,  471
MouseClick, left,  386,  459
MouseClick, left,  412,  448
MouseClick, left,  430,  435
MouseClick, left,  458,  422
MouseClick, left,  484,  411
MouseClick, left,  513,  399
MouseClick, left,  535,  386
MouseClick, left,  557,  374
MouseClick, left,  587,  364
MouseClick, left,  606,  352
MouseClick, left,  635,  339
MouseClick, left,  658,  327
MouseClick, left,  684,  316
MouseClick, left,  709,  302
MouseClick, left,  730,  320
MouseClick, left,  709,  330
MouseClick, left,  687,  339
MouseClick, left,  657,  354
MouseClick, left,  633,  363
MouseClick, left,  610,  377
MouseClick, left,  586,  388
MouseClick, left,  562,  399
MouseClick, left,  535,  412
MouseClick, left,  509,  424
MouseClick, left,  484,  436
MouseClick, left,  460,  447
MouseClick, left,  435,  458
MouseClick, left,  407,  471
MouseClick, left,  384,  484
MouseClick, left,  359,  495
MouseClick, left,  335,  508
MouseClick, left,  311,  520
MouseClick, left,  285,  531
MouseClick, left,  257,  543
MouseClick, left,  285,  554
MouseClick, left,  310,  544
MouseClick, left,  336,  530
MouseClick, left,  362,  518
MouseClick, left,  383,  508
MouseClick, left,  408,  497
MouseClick, left,  436,  485
MouseClick, left,  460,  470
MouseClick, left,  485,  460
MouseClick, left,  510,  450
MouseClick, left,  535,  434
MouseClick, left,  560,  423
MouseClick, left,  583,  413
MouseClick, left,  610,  398
MouseClick, left,  635,  386
MouseClick, left,  665,  376
MouseClick, left,  685,  362
MouseClick, left,  709,  352
MouseClick, left,  734,  339
MouseClick, left,  759,  328
MouseClick, left,  784,  339
MouseClick, left,  760,  350
MouseClick, left,  734,  363
MouseClick, left,  709,  375
MouseClick, left,  685,  387
MouseClick, left,  661,  400
MouseClick, left,  633,  410
MouseClick, left,  612,  423
MouseClick, left,  585,  434
MouseClick, left,  561,  447
MouseClick, left,  535,  459
MouseClick, left,  514,  471
MouseClick, left,  485,  486
MouseClick, left,  464,  496
MouseClick, left,  435,  508
MouseClick, left,  412,  518
MouseClick, left,  387,  529
MouseClick, left,  356,  545
MouseClick, left,  332,  555
MouseClick, left,  311,  566

Sleep, 100

;Return window to start position
MouseClickDrag, Left, 400, 500, 500, 600